package com.sgb.kjwl.model.entity.self;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Describe:
 * Author:
 * Date:    2021/4/13
 */
public class AddField implements Parcelable {
    private String key;
    private String value;

    protected AddField(Parcel in) {
        key = in.readString();
        value = in.readString();
    }

    public static final Creator<AddField> CREATOR = new Creator<AddField>() {
        @Override
        public AddField createFromParcel(Parcel in) {
            return new AddField(in);
        }

        @Override
        public AddField[] newArray(int size) {
            return new AddField[size];
        }
    };

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(key);
        dest.writeString(value);
    }
}
